<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>自动回购</title>

<script type="text/javascript">
	function percentageThirtyAutoBackBuy(){
		$.messager.confirm('操作提示','<br/>是否要进行售股利润30%自动回购？',function(r){
			if(r){
				$('#percentageThirtyAutoBackBuyResult').html('');
				$.post('sell!percentageThirtyAutoBackBuy.action',function(res){
					alert("回购成功");
					if(res=='')
						$('#percentageThirtyAutoBackBuyResult').html('没有可回购的玩家!');	
					else
						$('#percentageThirtyAutoBackBuyResult').html(res);
				})
			}
		});
		
	}
	
	function percentageSeventyAutoBackBuy(){
		$.messager.confirm('操作提示','<br/>是否要进行售股利润70%收入自动回购？',function(r){
			if(r){
				$('#percentageSeventyAutoBackBuyResult').html('');
				$.post('sell!percentageSeventyAutoBackBuy.action',function(res){
					alert("回购成功");
					if(res=='')
						$('#percentageSeventyAutoBackBuyResult').html('没有可回购的玩家!');
					else
						$('#percentageSeventyAutoBackBuyResult').html(res);
				})
			}
		});
		
	}

</script>

</head>
<body>
<br>
<br>
<a href ="javascript:percentageThirtyAutoBackBuy()">【售股利润30%自动回购】</a>
<div id="percentageThirtyAutoBackBuyResult"></div>
<br>
<br>
<a href ="javascript:percentageSeventyAutoBackBuy()" >【售股利润70%收入自动回购】</a>
<div id="percentageSeventyAutoBackBuyResult"></div>

</body>
</html>